<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="sb" uri="/struts-bootstrap-tags"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<s:include value="/WEB-INF/content/common/header.jsp"></s:include>
</head>

<body class="bg">
	<s:include value="/WEB-INF/content/common/title-head.jsp"></s:include>

	<div class="content">
		<s:include value="/WEB-INF/content/common/tab.jsp"></s:include>
		<script>
			$("#systemUserTab").addClass("active");
		</script>
		<div class="body">
			<div class="row">
				<div class="span7">
					<div class="span10 title">
						<h2>
							<s:text name="page.heading.addnew" />
						</h2>
					</div>
					<div class="col-lg-10 col-lg-offset-1">
						<div>
							<s:form action="" theme="simple" cssClass="form-horizontal">

								<div class="form-group">
									<s:actionmessage />
								</div>
								<div class="control-group">
									<label class="control-label"><s:text name="user.name" /></label>
									<div class="controls">
										<s:textfield name="systemUser.name" cssClass="form-control"
											placeholder="%{getText('user.system.name.placeholder')}"
											value="%{systemUser.name}" disabled="true" />
									</div>
								</div>
								<div class="control-group">
									<label class="control-label"><s:text name="user.email" /></label>
									<div class="controls">
										<s:textfield name="systemUser.email" cssClass="form-control"
											placeholder="%{getText('user.system.email.placeholder')}"
											value="%{systemUser.email}" disabled="true" />
									</div>
								</div>
								<div class="control-group">
									<label class="control-label"><s:text
											name="user.password" /></label>
									<div class="controls">
										<s:password name="systemUser.userPassword"
											cssClass="form-control"
											placeholder="%{getText('user.system.password.placeholder')}"
											showPassword="true" value="abc123" disabled="true" />
									</div>
								</div>
								<div class="control-group">
									<label class="control-label"><s:text name="user.type" /></label>
									<div class="controls">
										<s:textfield name="systemUser.email" cssClass="form-control"
											placeholder="%{getText('user.system.email.placeholder')}"
											value="%{systemUser.userType}" disabled="true" />
									</div>
								</div>

								<%-- <div class="control-group">
									<label class="control-label"><s:text
											name="user.switch.panel" /></label>
									<div class="controls">
										<s:iterator value="switchPanelList" status="index">
											<s:url var="switchPanelViewUrl" action="list"
												namespace="/switches" includeParams="none">
												<s:param name="panelId" value="%{id}" />
											</s:url>
											<label class="control-label" style="width: auto"> <s:a
													href="%{#switchPanelViewUrl}">
													<s:property value="name" />
												</s:a> <s:if test="#index.isLast()!=true ">,&nbsp;&nbsp;</s:if>
											</label>
										</s:iterator>
									</div>
								</div>

								<div class="control-group">
									<label class="control-label"><s:text
											name="user.controller" /></label>
									<div class="controls">
										<s:iterator value="controllerList" status="index">
											<s:url var="controllerViewUrl" action="list"
												namespace="/controller" includeParams="none">
												<s:param name="id" value="%{id}" />
											</s:url>
											<label class="control-label" style="width: auto"> <s:a
													href="%{#controllerViewUrl}">
													<s:property value="name" />
												</s:a> <s:if test="#index.isLast()!=true ">,&nbsp;&nbsp;</s:if>
											</label>
										</s:iterator>
									</div>
								</div> --%>
						</div>

						<div class="form-actions">
							<s:url var="editUserUrl" action="edit" namespace="/systemUser"
								includeParams="none">
								<s:param name="id" value="%{systemUser.id}" />
							</s:url>
							<s:a href="%{#editUserUrl}" cssClass="btn btn-primary">
								<s:text name="global.edit" />
							</s:a>
						</div>
						</s:form>
					</div>
				</div>
			</div>
		</div>
	</div>
	</div>
	<div id="footer">
		<s:include value="/WEB-INF/content/common/footer.jsp"></s:include>
	</div>
</body>
</html>



<%-- <%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="sb" uri="/struts-bootstrap-tags"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<s:include value="/WEB-INF/content/common/header.jsp"></s:include>
</head>
<body class="bg">
	<div class="container">
		<s:include value="/WEB-INF/content/common/title-head.jsp"></s:include>

		<div class="content">

			<s:include value="/WEB-INF/content/common/tab.jsp"></s:include>

			<script>
				$("#systemUserTab").addClass("active");
			</script>

			<div class="body">
				<div class="row">
					<div class="col-lg-10 col-lg-offset-1">
						<div class="span10 title">
							<h2>
								<s:text name="page.heading.view" />
							</h2>
						</div>
						<div class="create-area right">
							<s:a href="%{#systemUserAddUrl}"
								cssClass="btn btn-mini btn-primary">
								<s:text name="global.add" />
							</s:a>
						</div>

						<table class="table table-striped">
							<tr>
								<td><s:text name="user.name" /></td>
								<td><s:property value="systemUser.name" /></td>
							</tr>
							<tr>
								<td><s:text name="user.email" /></td>
								<td><s:property value="systemUser.email" /></td>
							</tr>
							<tr>
								<td><s:text name="user.type" /></td>
								<td><s:property value="systemUser.userType" /></td>
							</tr>
							<tr>
								<td colspan="2">&nbsp;</td>
							</tr>
							<tr>
								<td colspan="2"><s:url var="editUserUrl" action="edit"
										namespace="/systemUser" includeParams="none">
										<s:param name="id" value="%{systemUser.id}" />
									</s:url> <s:a href="%{#editUserUrl}" cssClass="btn btn-primary">
										<s:text name="global.edit" />
									</s:a></td>
							</tr>
						</table>
					</div>
				</div>
			</div>
		</div>
		<s:include value="/WEB-INF/content/common/footer.jsp"></s:include>
	</div>
</body>
</html> --%>